package com.jackrain.nea.ad.web.service;


import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.fastjson.JSONObject;
import com.jackrain.nea.web.ObjectSingleCmd;
import com.jackrain.nea.web.face.User;
import com.jackrain.nea.web.service.ObjectSingleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Slf4j
@Component("ObjectSingleCmdImpl-ad")
@Service(protocol="dubbo", validation="true", version="1", group= "ad")
public class ObjectSingleCmdImpl implements ObjectSingleCmd {

    @Autowired
    private ObjectSingleService objectSingleService;

    @Override
    public JSONObject getObjectTab(User userWeb, String tablename, Long objid, String ismaintable) throws Exception {

        return objectSingleService.getObjectTab(userWeb,tablename,objid,ismaintable);

    }


    @Override
    public JSONObject getObject(User userWeb, String tablename, Long objid) throws Exception {

        return objectSingleService.getObject(userWeb,tablename,objid);

    }
    
    @Override
    public JSONObject getObjectForUpTmp(User userWeb, String tablename) throws Exception {

        return objectSingleService.getObjectForUpTmp(userWeb,tablename);

    }


    @Override
    public JSONObject getObjectTableItem(User userWeb, String tablename, Long objid, int refcolid, String obj) throws Exception {

        return objectSingleService.getObjectTableItem(userWeb,tablename,objid,refcolid,obj);

    }



    @Override
    public JSONObject getInputForitem(User userWeb, String tablename, String inlinemode) throws Exception {

        return objectSingleService.getInputForitem(userWeb,tablename,inlinemode);

    }
    
    @Override
    public JSONObject getItemObj(User userWeb, String tablename, Long objid, int refcolid) throws Exception {

       return objectSingleService.getItemObj(userWeb,tablename,objid,refcolid);

    }

}
